<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>多重转换</title>
    <style>
      .box {
        margin-top: 500px;
        margin-left: 500px;
        width: 800px;
        height: 200px;
        border: 1px solid #000;
      }

      img {
        width: 200px;
        transition: all 5s;
      }

      /* 鼠标移入box，图片边走边转 */
      .box:hover img {
        /* 先平移再旋转 */
        transform: translate(600px) rotate(360deg);

        /* 旋转会改变坐标轴向 */
        /* 多重转换：以第一种转换形态的坐标轴为准 */
        /* transform: rotate(360deg) translate(600px); */

        /* 层叠性 */
        /* transform: translate(600px);
        transform: rotate(360deg); */
      }
    </style>
  </head>

  <body>
    <div class="box">
      <img src="./images/tyre1.png" alt="" />
    </div>
  </body>
</html>
